// This document, manifest.js, is the only file a wApps repository needs to maintain.
// it includes four sections: 1) Branding, 2) Tabs, 3) Apps, and 4) Authors


// 1) BRANDING - the icon and link in the upper left corner
wApps.manifest.brand={
    pic:'https://sites.google.com/a/s3db.org/s3db/_/rsrc/1209042953876/config/app/images/customLogo/customLogo.gif?revision=4',
    url:'https://s3dbapps.googlecode.com'
};

// 2) TABS - the navigation tabs in the head of wApps. 
//    The code manage "myApps", "Store" and "People",
//    the rest is up to you.
wApps.manifest.tabs={
    "myApps":{
        html:'Apps you selected from the AppStore ...',
        Div:{} // where the DOM element will be set later 
    },
    "Store":{
        html:'Retrieving list of Apps from the manifest ...',
        Div:{}
    },
    "People":{
        html:'Retrieving list of people authoring Apps ...',
        Div:{}
    },
    "About":{
        html:'<h1>wApps</h1>This is an experiment in loosening the architecture of a webApp store to achieve a deeper integration between autonomously developed components.',
        Div:{}
    }
};

// 3) APPS - the description of the applications 
// http://wapps.googlecode.com/git/index.html?loadApps=hiddenS3DBLogin&addmanifest=https://dl.dropbox.com/s/4odtehwgadh43q8/manifestIframeLogin.js?token_hash=AAG26kgQQ5tLdy_7OvLYrf9mCwV1knC2xckkxfvrjAoSLA&dl=1
// http://wapps.googlecode.com/git/index.html?loadApps=hiddenS3DBLogin&addmanifest=http://s3dbapps.googlecode.com/git/manifestIframeLogin.js

wApps.manifest.apps.push(
    {
    "name": "hiddenS3DBLogin",
    "description": "S3DB login through hidden frame",
    "url": "https://code.google.com/p/s3dbapps/source/browse/manifestIframeLogin.js",  
    // https://www.dropbox.com/s/4odtehwgadh43q8/manifestIframeLogin.js
    // 
    "author":"Jonas Almeida",
    "namespace":'',
    buildUI:function(id){
        this.require('',
            function(){
                $('#'+id).html('<p style="color:blue">Login and then try to get the s3db key from another wApp ;-) ... </p><p><iframe width=100% height=100 seamless="seamless" src="http://s3dbapps.googlecode.com/git/loginS3DB.html?url=https://uab.s3db.org/s3db",3000)"/></p><p style="color:blue">... or if you want to impress me, a wApp that will alert me to my own key once I login this S3DB login wApp<br></p><li>Direct link to: <a href="https://www.dropbox.com/s/4odtehwgadh43q8/manifestIframeLogin.js" target=_blank>manifest</a></li>');
            });
        }
    }
)

// 4) AUTHORS - description of the authors, matching the names in the Apps,
//              where they can be described as a string or, when there is
//              a team of authors, as an Array of strings .
wApps.manifest.authors.push(
    {
    "name":"Jonas Almeida",
    "url":"http://jonasalmeida.info"
    },

    {
    "name":"David Robbins",
    "url":"https://sites.google.com/a/mathbiol.org/robbinsd/"
    },

    {
    "name":"Sean Wilkinson",
    "url":"mailto:wilkinson@uab.edu"
    },

    {
    "name":"Alexander Gruneberg",
    "url":"https://sites.google.com/a/mathbiol.org/agrueneberg/"
    },

    {
    "name":"Alex Dussaq",
    "url":"mailto:adussaq@uab.edu"
    },

    {
    "name":"Some Author",
    "url":"http://someUrl.com"
    }
);

